<template>
  <div id="app">
    <div class='qualityManual-container'>
        <div  class='qualityManual-container-office'>
          <vab-only-office :option='option' />
        </div>
  </div>
  </div>
</template>

<script>
import vabOnlyOffice  from '@/views/onlyoffice/VabOnlyOffice.vue'


export default {
  name: 'App',
  components: {
    vabOnlyOffice
  },
  data() {
      return {
		  template:{},
        //参考vabOnlyOffice组件参数配置
        option: {
          url: '',
          isEdit: '',
          fileType: '',
          title: '',
          lang: '',
          isPrint: '',
		  editUrl:'',
          user: { id:'',name:''}
        },
      }
    },
	created() {
		this.getFile();
	},
    methods: {
      getFile() {
       // this.template = response.data;
       this.option.isEdit = false
       this.option.lang = 'zh-CN'
       this.option.url = this.getImgUrl(atob(this.$route.params.url))
       this.option.title = this.$route.params.orderNo
       this.option.fileType = 'doc'
       this.option.isPrint = true

       var usr=this.$store.state.user
       this.option.user= { id:usr.name,name:usr.name}
      },
    },
}
</script>

<style>
html,body{
  height:100%;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height:100%;

}
.qualityManual-container {
    padding: 0 !important;
    height:100%;
  }
  .qualityManual-container-office {
      width: 100%;
      height: calc(100% - 55px);
    }
</style>

